package com.ty.day5;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/28 17:15
 */
public class FileInputStreamDemo01 {
    public static void main(String[] args) throws IOException {
        File file = new File("E:\\文件夹\\java\\12\\GGBand.txt");
        FileInputStream fis = new FileInputStream(file);
        byte[] bytes=new byte[1024];
        fis.read(bytes,2,12);
        System.out.println(new String(bytes));
        fis.close();
    }
}
